<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class ServiceType extends Model
{
    use SoftDeletes;

    protected $table = 'service_type';

    protected $casts = [
        'status'=> 'string',
    ];

    const STATUS = [
        0=> '禁用',
        1=> '启用',
    ];


    public function service()
    {
        return $this->belongsTo(Service::class);
    }

}
